package com.sf.fy.uav.applet.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sf.fy.uav.common.request.common.IdRequest;
import com.sf.fy.uav.common.request.operate.*;
import com.sf.fy.uav.common.request.order.DealRequest;
import com.sf.fy.uav.common.response.operational.SysCouponActivityResponse;
import com.sf.fy.uav.entity.CouponActivity;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * <p>
 * 优惠券活动表 服务类
 * </p>
 *
 * @author LTQ
 * @since 2024-08-26
 */
public interface ISysCouponActivityService extends IService<CouponActivity> {


    /**
     * 添加活动
     *
     * @param couponActivityAddRequest
     */
    void addCouponActivity(CouponActivityAddRequest couponActivityAddRequest);

    /**
     * 添加活动
     *
     * @param couponActivityEditRequest
     */
    void editCouponActivity(CouponActivityEditRequest couponActivityEditRequest);

    /**
     * 查询总条数
     *
     * @param name
     * @param status
     * @return
     */
    Long getTotal(String name, Integer status);

    /**
     * 查询banners
     *
     * @param sysCouponActivityRequest
     * @return
     */
    List<SysCouponActivityResponse> getCouponActivity(SysCouponActivityRequest sysCouponActivityRequest);

    /**
     * 下架
     *
     * @param dealRequest
     */
    void off(@RequestBody DealRequest dealRequest);

    /**
     * 下架
     *
     * @param dealRequest
     */
    void delete(@RequestBody DealRequest dealRequest);


    /**
     * 检查活动有效性
     *
     * @param activityId
     * @return
     */
    Boolean checkEffectiveness(String activityId);


    /**
     * 启用
     *
     * @param idRequest
     * @return
     */
    Integer start(@RequestBody IdRequest idRequest);

    /**
     * 结束
     *
     * @param idRequest
     * @return
     */
    Integer end(@RequestBody IdRequest idRequest);
}
